﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Include/Admin.master" AutoEventWireup="true"
    CodeFile="Manage.aspx.cs" Inherits="Admin_JGJXDZGL_Manage" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../../Style/Common/DatePage.css" rel="stylesheet" type="text/css" />
    <link href="../../Scripts/jquery-easyui-1.3.1/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table cellspacing="0" cellpadding="0" style="width: 100%; height: 30px; padding-bottom: 5px;
        border: 1px; border-color: #66CCFF;">
        <tr style="background-image: url('../../images/管理员页面/title_bg1.jpg'); background-repeat: repeat-x;">
            <td style="font-weight: bold; font-size: large; font-family: 仿宋;">
                <strong>【机构教学地址管理】</strong>
            </td>
        </tr>
    </table>
    <table class="editTable" cellspacing="1">
        <tr>
            <th>
                省：
            </th>
            <td>
                <asp:DropDownList ID="drpSheng" runat="server" Height="20px" Width="100px" OnTextChanged="drpSheng_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                市：
            </th>
            <td>
                <asp:DropDownList ID="drpShi" runat="server" Height="20px" Width="100px" OnTextChanged="drpShi_TextChanged"
                    AutoPostBack="true">
                </asp:DropDownList>
            </td>
            <th>
                区：
            </th>
            <td>
                <asp:DropDownList ID="drpQu" runat="server" Height="20px" Width="100px">
                </asp:DropDownList>
            </td>
            <th>
                地址简介
            </th>
            <td>
                <asp:TextBox ID="txtMetaDes" runat="server" Height="20px" MaxLength="50"></asp:TextBox>
            </td>
            <th>
                所属机构
            </th>
            <td>
                <asp:TextBox ID="txtJGID" runat="server"></asp:TextBox>
                <img alt='查询' class="SearchJG" style="cursor" src="../../images/管理员页面/search.png" /><img
                    class="Clear_txtJGID" alt='清空' style="cursor" src="../../images/管理员页面/clear.gif" />
            </td>
            <td>
                <asp:Button ID="btnSearch" runat="server" Text="搜索" OnClick="btnSearch_Click" />
            </td>
        </tr>
    </table>
    <br />
    <asp:ListView ID="lvDate" runat="server" DataKeyNames="ID">
        <LayoutTemplate>
            <table class="editTable" width="100%" cellspacing="1">
                <tr>
                    <th>
                        所属机构
                    </th>
                    <th>
                        地址名称
                    </th>
                    <th>
                        地址简介
                    </th>
                    <th>
                        省市区
                    </th>
                    <th>
                        详细地址
                    </th>
                    <th>
                        交通路线
                    </th>
                    <th>
                        联系说明
                    </th>
                    <th>
                        在线咨询方式
                    </th>
                    <th>
                        联系邮箱
                    </th>
                    <th>
                        传真号码
                    </th>
                </tr>
                <asp:PlaceHolder ID="itemPlaceholder" runat="server"></asp:PlaceHolder>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <%#GetJGName(Eval("ID"))%>
                </td>
                <td>
                    <%#Eval("Title")%>
                </td>
                <td>
                    <%#Eval("MetaDes")%>
                </td>
                <td>
                    <%#GetShengShiQuName(Eval("ProvinceID"), Eval("CityID"), Eval("ReginID"))%>
                </td>
                <td>
                    <%#Eval("Address")%>
                </td>
                <td>
                    <%#Eval("JTLX")%>
                </td>
                <td>
                    <%#Eval("LXSM")%>
                </td>
                <td>
                    <%#Eval("ZXZX")%>
                </td>
                <td>
                    <%#Eval("Emails")%>
                </td>
                <td>
                    <%#Eval("CZHM")%>
                </td>
            </tr>
        </ItemTemplate>
        <EmptyDataTemplate>
            没有数据<br />
            <br />
        </EmptyDataTemplate>
    </asp:ListView>
    <div style="padding: 4px; text-align: center;">
        <asp:DataPager ID="Pager" runat="server" PagedControlID="lvDate" OnPreRender="Pager_PreRender"
            PageSize="20">
            <Fields>
                <asp:NumericPagerField ButtonCount="10" CurrentPageLabelCssClass="CurrentPage" NumericButtonCssClass="Page" />
                <asp:NextPreviousPagerField ShowLastPageButton="true" ShowPreviousPageButton="true"
                    ShowFirstPageButton="true" />
                <asp:TemplatePagerField>
                    <PagerTemplate>
                        共<%=Pager.TotalRowCount%>条
                    </PagerTemplate>
                </asp:TemplatePagerField>
            </Fields>
        </asp:DataPager>
    </div>
    <asp:HiddenField ID="hdlJGID" runat="server" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".SearchJG").click(function () {
                OpenPage("../Client/Manage.aspx?IsOpen=1", "<%=hdlJGID.ClientID %>", "<%=txtJGID.ClientID %>");
            })
            $(".Clear_txtJGID").click(function () {
                ClearText("<%=hdlJGID.ClientID %>", "<%=txtJGID.ClientID %>");
            })
        })
    </script>
    <br />
</asp:Content>
